<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01_数据类型</title>
</head>
<body>
    <script>
        var a = 10;
        var b = 3.12;
        console.log(a,typeof a,b,typeof b);
        var c = 'nihao';
        var d = "nih1";
        console.log(c,typeof c,d,typeof d);
        var e = true;
        var f = false;
        console.log(e,typeof e,f,typeof f);
        var g;
        console.log(g,typeof g);
        let obj = {};
        let obj1 = {
            name:"zhangsan",
            age:11
        }
        console.log(obj,typeof obj);
        console.log(obj1.age,typeof obj1);

        obj.like="play";
        console.log(obj);
        let arr = [obj,obj1];
        console.log(arr);

        console.log(Boolean(0));
        console.log(Boolean(''));
        console.log(Boolean(' '));
        console.log(Boolean(NaN));
        console.log(Boolean(null));
        console.log(Boolean(undefined));

        console.log(Number(true),typeof Number(true));
        console.log(Number(false),typeof Number(false));
        console.log(Number(3),typeof Number(3));
        console.log(Number('3'),typeof Number('3'));
        console.log(Number('哈哈哈'),typeof Number('哈哈哈'));

    </script>
</body>
</html>